package com.ruoyi.third.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 错误日志对象 third_error
 *
 * @author yepanpan
 * @date 2025-02-06
 */
@Data
public class ThirdError extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String TYPE_FAILED = "1";
    public static final String TYPE_FORMAT = "2";
    public static final String TYPE_AUTH = "3";
    public static final String TYPE_CONTROL = "4";
    public static final String TYPE_OTHER = "9";

    /** 自增长主键ID */
    private Long id;

    /** 平台代码 */
    @Excel(name = "平台代码")
    @NotNull
    private String pfCode;

    /** 类型 */
    @Excel(name = "类型", dictType="third_error_type", comboReadDict=true)
    @NotNull
    private String type;

    /** 标题 */
    @Excel(name = "标题")
    @NotNull
    private String title;

    /** 处理内容 */
    @Excel(name = "处理内容")
    private String content;

    /** 错误说明 */
    @Excel(name = "错误说明")
    private String error;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date logTime;


}
